// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-01

package pond

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/master/setting/seat/add"
	"server/app/http/logics/master/setting/seat/info"
	"server/app/http/logics/master/setting/seat/list"
	"server/app/http/logics/master/setting/seat/remove"
	"server/app/http/logics/master/setting/seat/rename"
	"server/app/http/logics/master/setting/seat/switcher"
)

// Controller
// 操作钓位.
//
// @Middleware("authorizer")
// @Middleware("master")
type Controller struct{}

// GetInfo
// 钓位详情.
func (o *Controller) GetInfo(i iris.Context) {
	logics.Do(i, info.New)
}

// GetList
// 钓位列表.
func (o *Controller) GetList(i iris.Context) {
	logics.Do(i, list.New)
}

// PostAdd
// 添加钓位.
func (o *Controller) PostAdd(i iris.Context) {
	logics.Do(i, add.New)
}

// PostRemove
// 删除钓位.
func (o *Controller) PostRemove(i iris.Context) {
	logics.Do(i, remove.New)
}

// PostRename
// 钓位改名.
func (o *Controller) PostRename(i iris.Context) {
	logics.Do(i, rename.New)
}

// PostSwitcher
// 切换状态.
func (o *Controller) PostSwitcher(i iris.Context) {
	logics.Do(i, switcher.New)
}
